package com.dove.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dove.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dove
 * @since 2022-03-31
 */
@Mapper
@Repository//!!
public interface CourseMapper extends BaseMapper<Course> {

    IPage<Course> myFindPage(Page<Course> page,@Param("name") String name);

    Boolean deleteStudentCourse(@Param("studentId") Integer studentId,@Param("courseId") Integer courseId);

    Boolean insertStudentCourse(@Param("studentId") Integer studentId,@Param("courseId") Integer courseId);
}
